<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>

<%@page import="com.lovo.bbs.vo.*,com.lovo.bbs.bo.*,java.util.*"%>

<%
    //提示信息
	String msg = "";
	if (request.getAttribute("msg") != null) {
		msg = (String) request.getAttribute("msg");
	}
	//获取用户信息 
	String username = request.getParameter("username");
	UserInfoVo userinfo = new UserInfoBo().getUserInfo(username,LoginBo.TYPE_OF_MEMBER);
	//网站杂项信息 
	ForumStatVo forumInfo = (ForumStatVo) application.getAttribute("forumInfo");
%>

<html>
	<head>
		<title>修改个人信息</title>
		<link href="../css/style.css" type="text/css" rel=stylesheet />
		<link href="../css/menu.css" type="text/css" rel=stylesheet />
		<link href="../css/common.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="../js/wbs_popup.js"></script>
		<script type="text/javascript" src="../js/wbs_common.js"></script>
		<script type="text/javascript" src="../js/wbs_ajax.js"></script>
		<script type="text/javascript">
			function tup(obj){
				if(obj==""){
					document.all['upup'].src="../images/userhead/nophoto.gif";
				}else{
					document.all['upup'].src="../images/userhead/"+obj;
				}
			}
			
		</script>
	</head>
	
	
	
	<body >
	
		<div id=popLayer style="position: absolute; z-index: 101"
			class=cPopText></div>

        <form name="frmMain" method="post" action="ControlServlet?type=special"  ENCTYPE="multipart/form-data">
        
        
        
		<!--登录状态----------------------------------------------------------------->
		<table width="100%" align="center" cellpadding="0" cellspacing="1"
			class="CommonNavigation_OuterTableCSS">
			<tr>
				<td>
					<table width="100%" cellpadding="9" cellspacing="0">
						<tr>
							<td class="CommonNavigation_InnerTableFooterCSS">
								<table width="100%" cellpadding="0" cellspacing="0" board="1">
									<tr>
										<td class="SmallTxt">
											欢迎:
											<label onMousemove="showPopupText(labeluser)"
												onMouseout="showPopupText('')">
												<a class="UserName"
													href="../userinfo.jsp?username=<%=userinfo.getUserName()%>"><%=userinfo.getUserName()%></a>
											</label>
											<font class="SmlLinks">( </font><a
												href="../LogoutServlet?toindex=true&logedusername=<%=userinfo.getUserName()%>">退出</a><font
												class="SmlLinks"> )</font>&nbsp;&nbsp;
											<a class="FunctionDesk"
												href="control.jsp?username=<%=userinfo.getUserName()%>">控制面板</a>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

			
			
			<font size="1"><br> </font>
			
			
			<!--导航栏----------------------------------------------------------------->
		<table width="100%" cellpadding="0" cellspacing="1"
			class="BreadCrumb_OuterTableCSS">
			<tr>
				<td>
					<table width="100%" cellpadding="9" cellspacing="0"
						class="BreadCrumb_InnerTableCSS">
						<tr>
							<td align="left">
								<a title="返回首页" class="SmlBoldLinks" href="../index.jsp"><%=forumInfo.getSiteName()%></a>
								<font class="BreadCrumb_NavSeperator">&#187;</font>
								<a class="SmlBoldLinks"
									href="control.jsp?username=<%=userinfo.getUserName()%>">控制面板</a>
								<font class="BreadCrumb_NavSeperator">&#187;</font>
								<a>个性化设置</a>&nbsp;&nbsp;
								    <font id="servermsg" size="1" color="red"><%=msg %></font>
								    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								    <font id="warnmsg"  size="1" color="red"></font>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
			
			
			<font size="1"><br> </font>
			
			
			
				<table Width="100%" CellPadding="0" CellSpacing="0">
			<tr>
				<td width="20%" valign="top">
					<table Class="forum_out" width="100%" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td>
								<table border="0" width="100%" cellpadding="0" cellspacing="0">
									<tr>
										<td>
											<table width="100%" border="0" cellpadding="9"
												cellspacing="0">
												<tr>
													<td class="forumcell_read">
														<font class="forumcell_read">控制面板</font>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table border="0" width="100%" cellpadding="9"
												cellspacing="1">
												<tr>
													<td Class="forumcell_button" bgcolor="#F5FBFF">
														<a class="SmlBoldLinks"
															href="account.jsp?username=<%=userinfo.getUserName()%>">账户管理</a>
													</td>
												</tr>
												<tr>
													<td Class="forumcell_button">
														<a class="SmlBoldLinks"
															href="contact.jsp?username=<%=userinfo.getUserName()%>">联系方式</a>
													</td>
												</tr>
												<tr>
													<td Class="forumcell_button">
															<font class="SmlBoldLinks">个性化设置</font>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>

					


						
						
						
						
						
					</td>
					<td>
						&nbsp;
					</td>
					<td width="80%" valign="top">
						<table Class="forum_out" width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td>
									<table border="0" width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td>
												<table width="100%" border="0" cellpadding="9" cellspacing="0">
													<tr>
														<td class="forumcell_read">
															<font class="forumcell_read">修改头像</font>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td>
												<table width="100%" cellpadding="9" cellspacing="1">
													<tr>
														<td width="24%" class="forumcell_button" valign="top">
															<font class="SmallTxtBold">当前头像:</font>
															<font size="1"><br> </font>
														</td>
														<td class="forumcell_button">
															<img height="90px" src="../images/userhead/<%=userinfo.getHeadImg()%>">
														</td>
													</tr>
													<tr>
														<td width="24%" class="forumcell_button" valign="top">
															<font class="SmallTxtBold">修改头像:</font>
															<font size="1"><br> </font>
														</td>
														<td class=forumcell_button valign="middle">
															<select name="headpic" id="sqtx" onchange="tup(this.value)">
																<option value="nophoto.gif">
																	默认
																</option>
																<option value="man01.gif">
																	帅哥NO.1
																</option>
																<option value="man02.gif">
																	帅哥NO.2
																</option>
																<option value="man03.gif">
																	帅哥NO.3
																</option>
																<option value="man04.gif">
																	帅哥NO.4
																</option>
																<option value="man05.gif">
																	帅哥NO.5
																</option>
																<option value="man06.gif">
																	帅哥NO.6
																</option>
																<option value="man07.gif">
																	帅哥NO.7
																</option>
																<option value="woman01.gif">
																	美女N0.1
																</option>
																<option value="woman02.gif">
																	美女N0.2
																</option>
																<option value="woman03.gif">
																	美女N0.3
																</option>
																<option value="woman04.gif">
																	美女N0.4
																</option>
																<option value="woman05.gif">
																	美女N0.5
																</option>
																<option value="woman06.gif">
																	美女N0.6
																</option>
																<option value="woman07.gif">
																	美女N0.7
																</option>
																<option value="woman08.gif">
																	美女N0.8
																</option>
															</select>
															<img height="90px" id="upup" src="../images/userhead/nophoto.gif">
														</td>
													<tr>
														<td width="24%" class="forumcell_button" valign="top">
															<font class="SmallTxtBold">上传头像:</font>
															<font size="1"><br> </font>
														</td>
														<td class="forumcell_button">
															<input  type="file" name="customhead" class="FormButtonBig" />
														</td>
													</tr>

												</table>
											</td>
										</tr>
										<tr>
											<td>
												<table border="0" width="100%" cellpadding="0" cellspacing="0">
													<tr>
														<td>
															<table width="100%" border="0" cellpadding="9" cellspacing="0">
																<tr>
																	<td class="forumcell_read">
																		<font class="forumcell_read">修改个性签名</font>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td>
															<table width="100%" cellpadding="9" cellspacing="1">
																<tr>
																	<td width="24%" class="forumcell_button" valign="top">
																		<font class="SmallTxtBold">当前签名:</font>
																		<font size="1"><br> </font>
																	</td>
																	<td class="forumcell_button">
																		<font style="font:12px"><%=userinfo.getSignature()%>
																		</font>
																	</td>
																</tr>
																<tr>
																	<td width="24%" class="forumcell_button" valign="top">
																		<font class="SmallTxtBold">修改签名:</font>
																		<font size="1"><br> </font>
																	</td>
																	<td class=forumcell_button valign="top">
																		<textarea name="sign" rows=6 cols=50><%=userinfo.getSignature()%></textarea>
																	</td>
																</tr>
																<tr>
																	<td width="24%" class="forumcell_button" colspan="2">
																		<input type="submit" value="修改" class="FormButtonBig" style="height:26px;" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			</form>
			<br>
			
		<!--页脚----------------------------------------------------------------->
		<%@include file="../include/copyright.html"%>
							
		<font size="1"><br></font>
		
		
	</body>
</html>
